package com.bckj.freshnow.order.repo;

import com.bckj.freshnow.order.mapper.TradeMarketingItemRelationMapper;
import com.bckj.freshnow.order.entity.TradeMarketingItemRelation;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

/**
 * 交易订单营销信息商品信息关联表(TradeMarketingItemRelation)表服务实现类
 *
 * @author makejava
 * @since 2025-04-22 16:33:27
 */
@Repository
public class TradeMarketingItemRelationRepository 
        extends ServiceImpl<TradeMarketingItemRelationMapper, TradeMarketingItemRelation> {

    public void saveRelation(Long tradeMarketingId, Long tradeItemId) {
        TradeMarketingItemRelation relation = new TradeMarketingItemRelation();
        relation.setTradeMarketingId(tradeMarketingId);
        relation.setTradeItemId(tradeItemId);
        save(relation);
    }
}

